module.exports = {
    publicPath: './',
    devServer: {
        open: true,
        proxy: {
            '/api': {
                // target: 'http://localhost:3000/', // 本地后端地址
                target: 'http://101.132.181.9:3000/', // 线上后端地址
                changeOrigin: true, //允许跨域
                pathRewrite: {
                    '^/api': ''
                }
            }
        },
        host: 'localhost', // can be overwritten by process.env.HOST
        port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    },

}
